home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_100
/
163_01
/
assert.c
< prev
next >
Wrap
Text File
|
1988-01-30
|
512b
|
12 lines
extern int *stderr;
extern int fputs(), abort();
/*
** assert -- program verification
*/
assert(expression) int expression; {
if(!expression) { /* expression should be true -- false is error */
fputs("Assertion failed\n", stderr);
abort(2); /* use abort to get traceback */
}
}